package com.dancun.mapper;

import com.dancun.entity.Solve;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jobob
 * @since 2020-10-02
 */
@Mapper
public interface SolveMapper extends BaseMapper<Solve> {

    @Select("select * from solve where issolve=1")
    List<Solve> list();

    @Select("select * from solve where name like concat('%',#{name},'%')")
    public List<Solve> listByName(String name);
}
